package com.bwhx.eruler.dao.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.Department;
import com.bwhx.eruler.bean.Menus;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.dao.DepartmentDao;
import com.bwhx.eruler.dao.MenusDao;

/**
 * @Description:
 */
@Repository
public class MenusDaoImpl extends BaseDaoImpl<Menus> implements MenusDao {
	public MenusDaoImpl() {
		this.setNs("com.bwhx.eruler.mapper.MenusMapper.");
	}


	@Override
	public List<Menus> listAll(Integer mType) {
		return this.getSqlSession().selectList("com.bwhx.eruler.mapper.MenusMapper." + "listAll",mType);
	}


	@Override
	public List<Menus> listByStaff(List<String> idsList,Integer mType) {
		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("list", idsList);
		
		paramMap.put("mType", mType);
		
		
		return this.getSqlSession().selectList("com.bwhx.eruler.mapper.MenusMapper." + "listByStaff",paramMap);
	}
	
}
